<template>
	<div class="my">
		<view class="bigBox">
			<view class="tou">
				<view class="pic"></view>
				<view class="myText" >
					<view>{{stu.name}}</view>
					<view>{{stu.sno}}</view>
				</view>
			</view>
			<view class="smallBox">
				<text class="myCard">我的卡包</text>
				<view class="imgRight2"></view>
				<text class="find">查看</text>
			</view>
		</view>
		
		
		<view class="msgBox">
			<view @click="msg">
				<input class="inputStyle" placeholder="个人信息" disabled/>
				<view class="imgRight"></view>
			</view>
			<view>
				<input class="inputStyle" placeholder="浏览记录" disabled/>
				<view class="imgRight"></view>
			</view>
			<view>
				<input class="inputStyle" placeholder="我的课表" disabled/>
				<view class="imgRight"></view>
			</view>
			<view>
				<input class="inputStyle" placeholder="意见反馈" disabled/>
				<view class="imgRight"></view>
			</view>
			<view>
				<input class="inputStyle" placeholder="软件更新" disabled />
				<view class="imgRight"></view>
			</view>
			<view  @click="loginAgain">
				<input class="inputStyle" placeholder="重新登录" disabled/>
				<view class="imgRight"></view>
			</view>
			<view class="hrBg"></view>
			<view @click="forget">
				<input class="inputStyle" placeholder="修改登录密码" disabled />
				<view class="imgRight"></view>
			</view>
			<view class="hrBg"></view>
		</view>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				text: 'uni-app',
				dataList:[],
				stu:{}
			}
		},
		onLoad: function (options) {
			setTimeout(function () {
				console.log('start pulldown');
			}, 1000);
			uni.startPullDownRefresh();
		},
		onPullDownRefresh() {
			console.log('refresh');
			setTimeout(function () {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		methods:{
			msg(){
				uni.navigateTo({
					url: 'msg'
				});
			},
			loginAgain(){
				uni.navigateTo({
					url: '../login/login'
				});
			},
			forget(){
				uni.navigateTo({
					url: '../login/forget'
				});
			}
		},
		watch:{
			$route(newVal,oldVal){
				if(newVal.path === "/pages/my/index"){
					this.stu = uni.getStorageSync('stu');
				}
				
			}
		}
	}
</script>

<style scoped src="../../static/css/my.css"></style>
